#define _CRT_SECURE_NO_WARNINGS 1
#include "Queue.h"

void test()
{
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);

	int front = QueueFront(&q);
	int back = QueueBack(&q);
	int size = QueueSize(&q);
	printf("front: %d; back: %d\n", front, back);
	printf("size:%d\n", size);

	QueuePop(&q);
	QueuePop(&q);

	front = QueueFront(&q);
	back = QueueBack(&q);
	size = QueueSize(&q);
	printf("front: %d; back: %d\n", front, back);
	printf("size:%d\n", size);

	/*QueuePop(&q);

	front = QueueFront(&q);
	back = QueueBack(&q);
	size = QueueSize(&q);
	printf("front: %d; back: %d\n", front, back);
	printf("size:%d\n", size);

	QueuePop(&q);
	size = QueueSize(&q);
	printf("size:%d\n", size);*/
	QueuePop(&q);
}

int main()
{
	test();

	return 0;
}